package com.pty.demo.structural.decorator;

import java.math.BigDecimal;

/**
 * @author pengty
 * @date 2020/3/12
 */
public class FruitCakeComponent implements CakeComponent {

    @Override
    public BigDecimal price() {
        return BigDecimal.valueOf(200);
    }

    @Override
    public String name() {
        return "水果蛋糕";
    }
}
